package com.jinsi.service.ylt.iml;

import com.jinsi.mapper.ylt.InfoDataUserMapper;
import com.jinsi.pojo.InfoDataUser;
import com.jinsi.service.ylt.InfoDataUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName InfoDataUserServiceImpl
 * @Content 用户统计展示数据业务实现类
 * @Author 姚龙腾
 * @Date 2022/10/12 11:53
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class InfoDataUserServiceImpl implements InfoDataUserService {
    @Autowired
    private InfoDataUserMapper infoDataUserMapper;


    /**
     * 获取7天内的注册用户个数
     * @param insider
     * @return List<InfoDataUser>
     */
    @Override
    @Transactional(readOnly = true)
    public List<InfoDataUser> getInfoDataUserByInsider(Integer insider) {
        return infoDataUserMapper.getInfoDataUserByInsider(insider);
    }


    /**
     * 获取7天内每天的封停和解封用户个数
     * @param sealState
     * @return List<InfoDataUser>
     */
    @Override
    @Transactional(readOnly = true)
    public List<InfoDataUser> getInfoDataUserSeal(Integer sealState) {
        return infoDataUserMapper.getInfoDataUserSeal(sealState);
    }



}
